﻿<html><head></head>
<body>

<div><br></div><div><div><span style="font-family: 微软雅黑; font-size: 9pt; line-height: 16px; ">实现：搜索表格中的某些字段</span></div><div><span style="font-family: 微软雅黑; font-size: 9pt; line-height: 16px; ">&nbsp; &nbsp; &nbsp; &nbsp;取出字符串</span></div><div><span style="font-family: 微软雅黑; font-size: 9pt; line-height: 16px; ">&nbsp; &nbsp; &nbsp; &nbsp;利用$m-&gt;where($data)-&gt;select()来实现。</span></div><div><br></div><div><span style="font-family: 微软雅黑; font-size: 9pt; line-height: 16px; ">$_POST['username']包含到字符串中，eg</span></div><div><span style="font-family: 微软雅黑; font-size: 9pt; line-height: 16px; ">&nbsp; &nbsp; &nbsp; &nbsp;$where['username'] = array('like', "%{$_POST['username']}%");</span></div><div><br></div></div><script type="text/javascript" language="javascript" src="jquery.js"></script><script type="text/javascript" language="javascript" src="itemlink.js"></script></body></html>